﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Whir_System_Module_Tags_TagsReplace : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RoleHelper.IsLogin();    //登录判断
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        string htmPath = this.txtUrl.Text;
        if (this.txtUrl.Text.IndexOf(':') == -1)
            htmPath = Server.MapPath(this.txtUrl.Text);



        this.s.Text = Whir.Label.LabelHelper.HtmlAnalysis(htmPath, "");

        //if (strHtml != "-1")
        //{

        //    //文件路径
        //    string path = this.txtUrl.Text.Substring(this.txtUrl.Text.LastIndexOf('\\') + 1);
        //    path = Server.MapPath(Whir.Common.Settings.GetString("SystemPath") + "Html/" + path);
        //    //生成文件
        //    Whir.Publish.CreateCommon.WriteFile(path, strHtml);
        //}
    }
}
